package User;

import Opertion.*;
import Scanner.ScannerOpertion;

public class NormalUser extends User{

    public NormalUser(String name) {
        super(name);
        this.iOpertions = new IOpertion[]{
                new ExitSystem(),
                new FindBook(),
                new BorroreBook(),
                new ReturnBook()
        };
    }

    @Override
    public int meun() {
        System.out.println("欢迎来到图书管理系统");
        System.out.println("********************************");
        System.out.println("\t\t\t1. 查阅图书");
        System.out.println("\t\t\t2. 借阅图书");
        System.out.println("\t\t\t3. 归还图书");
        System.out.println("\t\t\t0. 退出系统");
        System.out.println("********************************");
        System.out.println("请输入你的操作：");
        ScannerOpertion scannerOpertion = new ScannerOpertion();
        return scannerOpertion.setOpertion();
    }
}
